$.ajax({
	type: "get",
	url: "../json/kindle.json",
	dataType: "json",
	success: function(data){
		console.log(data);

		theBook(data[0])
		theBook(data[1])

		// 循环得到的数据,并添加
		function theBook(obj){
			for(var x in obj){
				for(var y in obj[x]){
					for(z in obj[x][y]){
						var thisBook = obj[x][y][z];
						for(var b in thisBook){
							var theDiv = "<div><img src='" + thisBook[b].img 
								+ "'/ >" + "<a href=" + thisBook[b].url + ">" + thisBook[b].name + "</a>" + "</div>"
							$("#first").append(theDiv);
						}
					}					
				}
			}
		}
	}
});